package com.example.myeurekaclientconsumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Chen Panrui
 * created at 2021/10/29 21:12
 * 配置服务提供者：eureka-client-service-provider 是服务提供者的 application.name
 */
@FeignClient(value = "eureka-client-service-provider", path = "demo")
public interface IHelloService {

    @RequestMapping(value = "/hello")
    String hello();

    @RequestMapping(value = "nice")
    String nice();
}
